package product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.boot.autoconfigure.domain.EntityScan;

@SpringBootApplication(scanBasePackages = {
        "product",  // ✅ 确保扫描 controller/service/model
        "user"      // 如果有用到 user 作为外键
})
@EntityScan(basePackages = {
        "product.domain.model",
        "user.domain.model"
})
public class AgricultureProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(AgricultureProductApplication.class, args);
    }
}